import QtQuick 2.0
import QtQuick.Controls 2.0

Item {
    function toUrl(url,params){
        StackView.view.push(url,params);
    }

    function pop(){
        if(StackView.view.depth==1){
            StackView.view.clear();
        }else{
            StackView.view.pop()
        }

    }

    function toTop(url){
        StackView.view.replace([url]);
    }
}
